package com.example.lifecycle.base;

import android.arch.lifecycle.LifecycleFragment;

public abstract class BaseTabFragment extends LifecycleFragment {



    @Override
    public final void onResume() {
        super.onResume();
        if (isAdded() && !isHidden() && isResumed()) {
            onShow();
        }
    }


    @Override
    public final void onHiddenChanged(boolean hidden) {
        super.onHiddenChanged(hidden);
        if (isAdded() && !isHidden() && isResumed()) {
            onShow();
        }
    }

    public abstract void onShow();

}
